home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-11-09 | 7.5 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: ReadLuminanceRecord.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Nov 9 02:32:37 1995, modified Thu Nov 9 02:32:37 1995, creator 'CWIE', type ASCII, 6847 bytes "ReadLuminanceRecord.c" , at 0x1b3f 586 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 52 65 61 64 4c 75 | 6d 69 6e 61 6e 63 65 52 |..ReadLu|minanceR|
|00000010| 65 63 6f 72 64 2e 63 00 | 00 00 00 00 00 00 00 00 |ecord.c.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 1a bf 00 | 00 02 4a ac c7 5f 15 ac |........|..J.._..|
|00000060| c7 5f 15 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |._......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 1a 6f 00 00 |........|.....o..|
|00000080| 2f 2a 0d 52 65 61 64 4c | 75 6d 69 6e 61 6e 63 65 |/*.ReadL|uminance|
|00000090| 52 65 63 6f 72 64 2e 63 | 0d 0d 6c 6f 6e 67 20 49 |Record.c|..long I|
|000000a0| 6e 69 74 69 61 6c 69 7a | 65 4c 75 6d 69 6e 61 6e |nitializ|eLuminan|
|000000b0| 63 65 52 65 63 6f 72 64 | 28 4c 75 6d 69 6e 61 6e |ceRecord|(Luminan|
|000000c0| 63 65 52 65 63 6f 72 64 | 20 2a 4c 50 2c 73 68 6f |ceRecord| *LP,sho|
|000000d0| 72 74 20 66 6c 61 67 73 | 29 3b 0d 0d 09 69 3d 52 |rt flags|);...i=R|
|000000e0| 65 61 64 4c 75 6d 69 6e | 61 6e 63 65 52 65 63 6f |eadLumin|anceReco|
|000000f0| 72 64 28 22 4c 75 6d 69 | 6e 61 6e 63 65 52 65 63 |rd("Lumi|nanceRec|
|00000100| 6f 72 64 31 2e 68 22 2c | 26 4c 52 2c 30 29 3b 0d |ord1.h",|&LR,0);.|
|00000110| 52 65 61 64 73 20 61 20 | 4c 75 6d 69 6e 61 6e 63 |Reads a |Luminanc|
|00000120| 65 52 65 63 6f 72 64 3f | 2e 68 20 66 69 6c 65 20 |eRecord?|.h file |
|00000130| 61 74 20 72 75 6e 74 69 | 6d 65 2e 20 49 6e 20 74 |at runti|me. In t|
|00000140| 68 65 20 70 61 73 74 2c | 20 74 68 65 73 65 20 63 |he past,| these c|
|00000150| 61 6c 69 62 72 61 74 69 | 6f 6e 2d 64 61 74 61 20 |alibrati|on-data |
|00000160| 66 69 6c 65 73 0d 63 6f | 75 6c 64 20 6f 6e 6c 79 |files.co|uld only|
|00000170| 20 62 65 20 75 73 65 64 | 20 62 79 20 23 69 6e 63 | be used| by #inc|
|00000180| 6c 75 64 69 6e 67 20 74 | 68 65 6d 20 61 74 20 63 |luding t|hem at c|
|00000190| 6f 6d 70 69 6c 65 20 74 | 69 6d 65 2e 0d 0d 09 6c |ompile t|ime....l|
|000001a0| 6f 6e 67 20 57 72 69 74 | 65 4c 75 6d 69 6e 61 6e |ong Writ|eLuminan|
|000001b0| 63 65 52 65 63 6f 72 64 | 28 63 68 61 72 20 2a 66 |ceRecord|(char *f|
|000001c0| 69 6c 65 6e 61 6d 65 2c | 4c 75 6d 69 6e 61 6e 63 |ilename,|Luminanc|
|000001d0| 65 52 65 63 6f 72 64 20 | 2a 4c 50 2c 73 68 6f 72 |eRecord |*LP,shor|
|000001e0| 74 20 66 6c 61 67 73 29 | 3b 0d 57 72 69 74 65 73 |t flags)|;.Writes|
|000001f0| 20 28 61 6e 64 20 76 65 | 72 69 66 69 65 73 29 20 | (and ve|rifies) |
|00000200| 61 20 4c 75 6d 69 6e 61 | 6e 63 65 52 65 63 6f 72 |a Lumina|nceRecor|
|00000210| 64 2c 20 61 70 70 65 6e | 64 69 6e 67 20 74 6f 20 |d, appen|ding to |
|00000220| 74 68 65 20 66 69 6c 65 | 2e 0d 0d 09 44 65 73 63 |the file|....Desc|
|00000230| 72 69 70 74 69 6f 6e 20 | 2a 44 65 73 63 72 69 62 |ription |*Describ|
|00000240| 65 4c 75 6d 69 6e 61 6e | 63 65 52 65 63 6f 72 64 |eLuminan|ceRecord|
|00000250| 28 4c 75 6d 69 6e 61 6e | 63 65 52 65 63 6f 72 64 |(Luminan|ceRecord|
|00000260| 20 2a 4c 50 29 3b 0d 43 | 72 65 61 74 65 73 20 61 | *LP);.C|reates a|
|00000270| 20 44 65 73 63 72 69 70 | 74 69 6f 6e 20 61 72 72 | Descrip|tion arr|
|00000280| 61 79 20 74 6f 20 72 65 | 61 64 20 61 6e 64 20 77 |ay to re|ad and w|
|00000290| 72 69 74 65 20 4c 75 6d | 69 6e 61 6e 63 65 52 65 |rite Lum|inanceRe|
|000002a0| 63 6f 72 64 20 61 73 73 | 69 67 6e 6d 65 6e 74 20 |cord ass|ignment |
|000002b0| 66 69 6c 65 73 2e 0d 0d | 0d 48 49 53 54 4f 52 59 |files...|.HISTORY|
|000002c0| 3a 0d 37 2f 32 39 2f 39 | 31 20 64 67 70 0d 38 2f |:.7/29/9|1 dgp.8/|
|000002d0| 32 34 2f 39 31 09 64 67 | 70 09 4d 61 64 65 20 63 |24/91.dg|p.Made c|
|000002e0| 6f 6d 70 61 74 69 62 6c | 65 20 77 69 74 68 20 54 |ompatibl|e with T|
|000002f0| 48 49 4e 4b 20 43 20 35 | 2e 30 2e 0d 09 09 09 50 |HINK C 5|.0.....P|
|00000300| 72 65 73 65 72 76 65 20 | 64 65 66 61 75 6c 74 20 |reserve |default |
|00000310| 76 61 6c 75 65 73 20 6f | 66 20 4c 50 2d 3e 56 4d |values o|f LP->VM|
|00000320| 69 6e 20 61 6e 64 20 4c | 50 2d 3e 56 4d 61 78 20 |in and L|P->VMax |
|00000330| 69 66 20 6e 6f 20 6e 65 | 77 20 76 61 6c 75 65 73 |if no ne|w values|
|00000340| 20 61 72 65 20 72 65 61 | 64 2e 0d 38 2f 32 36 2f | are rea|d..8/26/|
|00000350| 39 31 09 64 67 70 09 52 | 65 77 72 6f 74 65 20 75 |91.dgp.R|ewrote u|
|00000360| 73 69 6e 67 20 6e 65 77 | 20 53 65 74 56 61 72 69 |sing new| SetVari|
|00000370| 61 62 6c 65 28 29 20 72 | 6f 75 74 69 6e 65 2c 20 |able() r|outine, |
|00000380| 77 68 69 63 68 20 6d 61 | 6b 65 73 20 74 68 65 20 |which ma|kes the |
|00000390| 63 6f 64 65 20 65 61 73 | 69 65 72 20 74 6f 0d 09 |code eas|ier to..|
|000003a0| 09 09 72 65 61 64 2e 20 | 0d 31 32 2f 31 37 2f 39 |..read. |.12/17/9|
|000003b0| 32 20 64 67 70 20 41 64 | 64 65 64 20 64 61 63 53 |2 dgp Ad|ded dacS|
|000003c0| 69 7a 65 2e 0d 31 32 2f | 32 31 2f 39 32 20 64 67 |ize..12/|21/92 dg|
|000003d0| 70 20 43 68 61 6e 67 65 | 64 20 74 79 70 65 20 6f |p Change|d type o|
|000003e0| 66 20 64 61 63 53 69 7a | 65 20 66 72 6f 6d 20 6c |f dacSiz|e from l|
|000003f0| 6f 6e 67 20 74 6f 20 73 | 68 6f 72 74 2e 0d 36 2f |ong to s|hort..6/|
|00000400| 33 2f 39 33 09 64 67 70 | 09 55 70 64 61 74 65 64 |3/93.dgp|.Updated|
|00000410| 20 74 6f 20 77 6f 72 6b | 20 77 69 74 68 20 6e 65 | to work| with ne|
|00000420| 77 20 41 73 73 69 67 6e | 2e 63 2e 20 0d 09 09 09 |w Assign|.c. ....|
|00000430| 43 72 65 61 74 65 64 20 | 44 65 73 63 72 69 62 65 |Created |Describe|
|00000440| 4c 75 6d 69 6e 61 6e 63 | 65 52 65 63 6f 72 64 41 |Luminanc|eRecordA|
|00000450| 73 73 69 67 6e 6d 65 6e | 74 28 29 20 61 6e 64 20 |ssignmen|t() and |
|00000460| 57 72 69 74 65 4c 75 6d | 69 6e 61 6e 63 65 52 65 |WriteLum|inanceRe|
|00000470| 63 6f 72 64 28 29 2e 0d | 38 2f 31 32 2f 39 33 09 |cord()..|8/12/93.|
|00000480| 64 67 70 09 52 65 6e 61 | 6d 65 64 20 72 6f 75 74 |dgp.Rena|med rout|
|00000490| 69 6e 65 73 20 74 6f 20 | 62 65 20 63 6f 6e 73 69 |ines to |be consi|
|000004a0| 73 74 65 6e 74 20 77 69 | 74 68 20 6e 65 77 20 41 |stent wi|th new A|
|000004b0| 73 73 69 67 6e 2e 63 2e | 0d 09 09 09 52 65 6e 61 |ssign.c.|....Rena|
|000004c0| 6d 65 64 20 22 44 65 73 | 63 72 69 62 65 4c 75 6d |med "Des|cribeLum|
|000004d0| 69 6e 61 6e 63 65 52 65 | 63 6f 72 64 41 73 73 69 |inanceRe|cordAssi|
|000004e0| 67 6e 6d 65 6e 74 22 20 | 74 6f 20 22 44 65 73 63 |gnment" |to "Desc|
|000004f0| 72 69 62 65 4c 75 6d 69 | 6e 61 6e 63 65 52 65 63 |ribeLumi|nanceRec|
|00000500| 6f 72 64 22 2e 0d 33 2f | 34 2f 39 34 09 64 67 70 |ord"..3/|4/94.dgp|
|00000510| 20 52 65 61 64 4c 75 6d | 69 6e 61 6e 63 65 52 65 | ReadLum|inanceRe|
|00000520| 63 6f 72 64 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 69 |cord no |longer i|
|00000530| 6e 69 74 69 61 6c 69 7a | 65 73 2e 20 41 64 64 65 |nitializ|es. Adde|
|00000540| 64 20 49 6e 69 74 69 61 | 6c 69 7a 65 4c 75 6d 69 |d Initia|lizeLumi|
|00000550| 6e 61 6e 63 65 52 65 63 | 6f 72 64 2e 0d 38 2f 31 |nanceRec|ord..8/1|
|00000560| 35 2f 39 35 20 64 67 70 | 20 66 69 78 65 64 20 74 |5/95 dgp| fixed t|
|00000570| 79 70 6f 20 69 6e 20 65 | 72 72 6f 72 20 6d 65 73 |ypo in e|rror mes|
|00000580| 73 61 67 65 20 73 74 72 | 69 6e 67 20 72 65 70 6f |sage str|ing repo|
|00000590| 72 74 65 64 20 62 79 20 | 42 6f 73 63 6f 2e 0d 31 |rted by |Bosco..1|
|000005a0| 31 2f 39 2f 39 35 20 64 | 67 70 20 63 68 61 6e 67 |1/9/95 d|gp chang|
|000005b0| 65 64 20 66 69 6c 65 20 | 63 72 65 61 74 6f 72 20 |ed file |creator |
|000005c0| 6f 66 20 4c 75 6d 69 6e | 61 6e 63 65 52 65 63 6f |of Lumin|anceReco|
|000005d0| 72 64 20 66 69 6c 65 20 | 74 6f 20 27 43 57 49 45 |rd file |to 'CWIE|
|000005e0| 27 2c 20 69 2e 65 2e 20 | 43 6f 64 65 57 61 72 72 |', i.e. |CodeWarr|
|000005f0| 69 6f 72 20 74 65 78 74 | 20 66 69 6c 65 2e 0d 2a |ior text| file..*|
|00000600| 2f 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 56 69 64 |/..#incl|ude "Vid|
|00000610| 65 6f 54 6f 6f 6c 62 6f | 78 2e 68 22 0d 23 69 6e |eoToolbo|x.h".#in|
|00000620| 63 6c 75 64 65 20 22 4c | 75 6d 69 6e 61 6e 63 65 |clude "L|uminance|
|00000630| 2e 68 22 0d 23 64 65 66 | 69 6e 65 20 56 41 52 49 |.h".#def|ine VARI|
|00000640| 41 42 4c 45 53 20 33 32 | 0d 6c 6f 6e 67 20 49 6e |ABLES 32|.long In|
|00000650| 69 74 69 61 6c 69 7a 65 | 4c 75 6d 69 6e 61 6e 63 |itialize|Luminanc|
|00000660| 65 52 65 63 6f 72 64 28 | 4c 75 6d 69 6e 61 6e 63 |eRecord(|Luminanc|
|00000670| 65 52 65 63 6f 72 64 20 | 2a 4c 50 2c 73 68 6f 72 |eRecord |*LP,shor|
|00000680| 74 20 66 6c 61 67 73 29 | 3b 0d 0d 6c 6f 6e 67 20 |t flags)|;..long |
|00000690| 49 6e 69 74 69 61 6c 69 | 7a 65 4c 75 6d 69 6e 61 |Initiali|zeLumina|
|000006a0| 6e 63 65 52 65 63 6f 72 | 64 28 4c 75 6d 69 6e 61 |nceRecor|d(Lumina|
|000006b0| 6e 63 65 52 65 63 6f 72 | 64 20 2a 4c 50 2c 73 68 |nceRecor|d *LP,sh|
|000006c0| 6f 72 74 20 66 6c 61 67 | 73 29 0d 7b 0d 09 44 65 |ort flag|s).{..De|
|000006d0| 73 63 72 69 70 74 69 6f | 6e 20 2a 64 3b 0d 09 6c |scriptio|n *d;..l|
|000006e0| 6f 6e 67 20 6e 3b 0d 0d | 09 64 3d 44 65 73 63 72 |ong n;..|.d=Descr|
|000006f0| 69 62 65 4c 75 6d 69 6e | 61 6e 63 65 52 65 63 6f |ibeLumin|anceReco|
|00000700| 72 64 28 4c 50 29 3b 0d | 09 69 66 28 64 3d 3d 4e |rd(LP);.|.if(d==N|
|00000710| 55 4c 4c 29 7b 0d 09 09 | 69 66 28 66 6c 61 67 73 |ULL){...|if(flags|
|00000720| 26 61 73 73 69 67 6e 4e | 6f 50 72 69 6e 74 66 45 |&assignN|oPrintfE|
|00000730| 78 69 74 29 72 65 74 75 | 72 6e 20 61 73 73 69 67 |xit)retu|rn assig|
|00000740| 6e 4d 65 6d 6f 72 79 45 | 72 72 6f 72 3b 0d 09 09 |nMemoryE|rror;...|
|00000750| 65 6c 73 65 20 50 72 69 | 6e 74 66 45 78 69 74 28 |else Pri|ntfExit(|
|00000760| 22 5c 6e 49 6e 69 74 69 | 61 6c 69 7a 65 4c 75 6d |"\nIniti|alizeLum|
|00000770| 69 6e 61 6e 63 65 52 65 | 63 6f 72 64 3a 20 6e 6f |inanceRe|cord: no|
|00000780| 20 72 6f 6f 6d 20 66 6f | 72 20 56 61 72 69 61 62 | room fo|r Variab|
|00000790| 6c 65 73 2e 5c 6e 5c 30 | 30 37 22 29 3b 0d 09 7d |les.\n\0|07");..}|
|000007a0| 0d 09 6e 3d 49 6e 69 74 | 69 61 6c 69 7a 65 44 65 |..n=Init|ializeDe|
|000007b0| 73 63 72 69 62 65 64 56 | 61 72 73 28 64 2c 66 6c |scribedV|ars(d,fl|
|000007c0| 61 67 73 29 3b 0d 09 4c | 50 2d 3e 64 61 63 53 69 |ags);..L|P->dacSi|
|000007d0| 7a 65 3d 38 3b 09 09 09 | 09 09 2f 2a 20 20 64 65 |ze=8;...|../* de|
|000007e0| 66 61 75 6c 74 20 76 61 | 6c 75 65 20 2a 2f 0d 09 |fault va|lue */..|
|000007f0| 66 72 65 65 28 64 29 3b | 0d 09 72 65 74 75 72 6e |free(d);|..return|
|00000800| 20 6e 3b 0d 7d 0d 0d 6c | 6f 6e 67 20 52 65 61 64 | n;.}..l|ong Read|
|00000810| 4c 75 6d 69 6e 61 6e 63 | 65 52 65 63 6f 72 64 28 |Luminanc|eRecord(|
|00000820| 63 68 61 72 20 2a 66 69 | 6c 65 6e 61 6d 65 2c 4c |char *fi|lename,L|
|00000830| 75 6d 69 6e 61 6e 63 65 | 52 65 63 6f 72 64 20 2a |uminance|Record *|
|00000840| 4c 50 2c 73 68 6f 72 74 | 20 66 6c 61 67 73 29 0d |LP,short| flags).|
|00000850| 7b 0d 09 44 65 73 63 72 | 69 70 74 69 6f 6e 20 2a |{..Descr|iption *|
|00000860| 64 3b 0d 09 6c 6f 6e 67 | 20 6e 3b 0d 0d 09 61 73 |d;..long| n;...as|
|00000870| 73 65 72 74 28 4c 50 21 | 3d 4e 55 4c 4c 29 3b 0d |sert(LP!|=NULL);.|
|00000880| 09 64 3d 44 65 73 63 72 | 69 62 65 4c 75 6d 69 6e |.d=Descr|ibeLumin|
|00000890| 61 6e 63 65 52 65 63 6f | 72 64 28 4c 50 29 3b 0d |anceReco|rd(LP);.|
|000008a0| 09 69 66 28 64 3d 3d 4e | 55 4c 4c 29 7b 0d 09 09 |.if(d==N|ULL){...|
|000008b0| 69 66 28 66 6c 61 67 73 | 26 61 73 73 69 67 6e 4e |if(flags|&assignN|
|000008c0| 6f 50 72 69 6e 74 66 45 | 78 69 74 29 72 65 74 75 |oPrintfE|xit)retu|
|000008d0| 72 6e 20 61 73 73 69 67 | 6e 4d 65 6d 6f 72 79 45 |rn assig|nMemoryE|
|000008e0| 72 72 6f 72 3b 0d 09 09 | 65 6c 73 65 20 50 72 69 |rror;...|else Pri|
|000008f0| 6e 74 66 45 78 69 74 28 | 22 5c 6e 52 65 61 64 4c |ntfExit(|"\nReadL|
|00000900| 75 6d 69 6e 61 6e 63 65 | 52 65 63 6f 72 64 3a 20 |uminance|Record: |
|00000910| 6e 6f 20 72 6f 6f 6d 20 | 66 6f 72 20 56 61 72 69 |no room |for Vari|
|00000920| 61 62 6c 65 73 2e 5c 6e | 5c 30 30 37 22 29 3b 0d |ables.\n|\007");.|
|00000930| 09 7d 0d 2f 2f 09 6e 3d | 49 6e 69 74 69 61 6c 69 |.}.//.n=|Initiali|
|00000940| 7a 65 44 65 73 63 72 69 | 62 65 64 56 61 72 73 28 |zeDescri|bedVars(|
|00000950| 64 2c 66 6c 61 67 73 29 | 3b 0d 09 4c 50 2d 3e 64 |d,flags)|;..LP->d|
|00000960| 61 63 53 69 7a 65 3d 38 | 3b 09 09 09 09 09 2f 2a |acSize=8|;...../*|
|00000970| 20 20 64 65 66 61 75 6c | 74 20 76 61 6c 75 65 20 | defaul|t value |
|00000980| 2a 2f 0d 09 6e 3d 52 65 | 61 64 41 73 73 69 67 6e |*/..n=Re|adAssign|
|00000990| 6d 65 6e 74 46 69 6c 65 | 28 66 69 6c 65 6e 61 6d |mentFile|(filenam|
|000009a0| 65 2c 64 2c 66 6c 61 67 | 73 29 3b 0d 09 66 72 65 |e,d,flag|s);..fre|
|000009b0| 65 28 64 29 3b 0d 09 72 | 65 74 75 72 6e 20 6e 3b |e(d);..r|eturn n;|
|000009c0| 0d 7d 0d 0d 6c 6f 6e 67 | 20 57 72 69 74 65 4c 75 |.}..long| WriteLu|
|000009d0| 6d 69 6e 61 6e 63 65 52 | 65 63 6f 72 64 28 63 68 |minanceR|ecord(ch|
|000009e0| 61 72 20 2a 66 69 6c 65 | 6e 61 6d 65 2c 4c 75 6d |ar *file|name,Lum|
|000009f0| 69 6e 61 6e 63 65 52 65 | 63 6f 72 64 20 2a 4c 50 |inanceRe|cord *LP|
|00000a00| 2c 73 68 6f 72 74 20 66 | 6c 61 67 73 29 0d 7b 0d |,short f|lags).{.|
|00000a10| 09 44 65 73 63 72 69 70 | 74 69 6f 6e 20 2a 64 3d |.Descrip|tion *d=|
|00000a20| 4e 55 4c 4c 2c 2a 64 32 | 3d 4e 55 4c 4c 3b 0d 09 |NULL,*d2|=NULL;..|
|00000a30| 4c 75 6d 69 6e 61 6e 63 | 65 52 65 63 6f 72 64 20 |Luminanc|eRecord |
|00000a40| 2a 4c 50 32 3d 4e 55 4c | 4c 3b 0d 09 6c 6f 6e 67 |*LP2=NUL|L;..long|
|00000a50| 20 6e 2c 6d 3b 0d 0d 09 | 2f 2a 20 20 57 72 69 74 | n,m;...|/* Writ|
|00000a60| 65 20 2a 2f 0d 09 61 73 | 73 65 72 74 28 4c 50 21 |e */..as|sert(LP!|
|00000a70| 3d 4e 55 4c 4c 29 3b 0d | 09 64 3d 44 65 73 63 72 |=NULL);.|.d=Descr|
|00000a80| 69 62 65 4c 75 6d 69 6e | 61 6e 63 65 52 65 63 6f |ibeLumin|anceReco|
|00000a90| 72 64 28 4c 50 29 3b 0d | 09 69 66 28 64 3d 3d 4e |rd(LP);.|.if(d==N|
|00000aa0| 55 4c 4c 29 7b 0d 09 09 | 6e 3d 61 73 73 69 67 6e |ULL){...|n=assign|
|00000ab0| 4d 65 6d 6f 72 79 45 72 | 72 6f 72 3b 0d 09 09 69 |MemoryEr|ror;...i|
|00000ac0| 66 28 66 6c 61 67 73 26 | 61 73 73 69 67 6e 4e 6f |f(flags&|assignNo|
|00000ad0| 50 72 69 6e 74 66 45 78 | 69 74 29 67 6f 74 6f 20 |PrintfEx|it)goto |
|00000ae0| 64 6f 6e 65 3b 0d 09 09 | 65 6c 73 65 20 50 72 69 |done;...|else Pri|
|00000af0| 6e 74 66 45 78 69 74 28 | 22 5c 6e 57 72 69 74 65 |ntfExit(|"\nWrite|
|00000b00| 4c 75 6d 69 6e 61 6e 63 | 65 52 65 63 6f 72 64 3a |Luminanc|eRecord:|
|00000b10| 20 6e 6f 20 72 6f 6f 6d | 20 66 6f 72 20 56 61 72 | no room| for Var|
|00000b20| 69 61 62 6c 65 73 2e 5c | 6e 5c 30 30 37 22 29 3b |iables.\|n\007");|
|00000b30| 0d 09 7d 0d 09 6e 3d 50 | 72 69 6e 74 41 73 73 69 |..}..n=P|rintAssi|
|00000b40| 67 6e 6d 65 6e 74 73 54 | 6f 46 69 6c 65 28 66 69 |gnmentsT|oFile(fi|
|00000b50| 6c 65 6e 61 6d 65 2c 64 | 2c 66 6c 61 67 73 29 3b |lename,d|,flags);|
|00000b60| 0d 09 53 65 74 46 69 6c | 65 49 6e 66 6f 28 66 69 |..SetFil|eInfo(fi|
|00000b70| 6c 65 6e 61 6d 65 2c 27 | 54 45 58 54 27 2c 27 43 |lename,'|TEXT','C|
|00000b80| 57 49 45 27 29 3b 0d 09 | 69 66 28 6e 3c 30 29 67 |WIE');..|if(n<0)g|
|00000b90| 6f 74 6f 20 64 6f 6e 65 | 3b 0d 09 0d 09 2f 2a 20 |oto done|;..../* |
|00000ba0| 20 56 65 72 69 66 79 20 | 2a 2f 0d 09 4c 50 32 3d | Verify |*/..LP2=|
|00000bb0| 28 4c 75 6d 69 6e 61 6e | 63 65 52 65 63 6f 72 64 |(Luminan|ceRecord|
|00000bc0| 20 2a 29 6d 61 6c 6c 6f | 63 28 73 69 7a 65 6f 66 | *)mallo|c(sizeof|
|00000bd0| 28 4c 75 6d 69 6e 61 6e | 63 65 52 65 63 6f 72 64 |(Luminan|ceRecord|
|00000be0| 29 29 3b 0d 09 69 66 28 | 4c 50 32 3d 3d 4e 55 4c |));..if(|LP2==NUL|
|00000bf0| 4c 29 7b 0d 09 09 6e 3d | 61 73 73 69 67 6e 4d 65 |L){...n=|assignMe|
|00000c00| 6d 6f 72 79 45 72 72 6f | 72 3b 0d 09 09 69 66 28 |moryErro|r;...if(|
|00000c10| 66 6c 61 67 73 26 61 73 | 73 69 67 6e 4e 6f 50 72 |flags&as|signNoPr|
|00000c20| 69 6e 74 66 45 78 69 74 | 29 67 6f 74 6f 20 64 6f |intfExit|)goto do|
|00000c30| 6e 65 3b 0d 09 09 65 6c | 73 65 20 50 72 69 6e 74 |ne;...el|se Print|
|00000c40| 66 45 78 69 74 28 22 5c | 6e 57 72 69 74 65 4c 75 |fExit("\|nWriteLu|
|00000c50| 6d 69 6e 61 6e 63 65 52 | 65 63 6f 72 64 3a 20 6e |minanceR|ecord: n|
|00000c60| 6f 20 72 6f 6f 6d 20 66 | 6f 72 20 4c 75 6d 69 6e |o room f|or Lumin|
|00000c70| 61 6e 63 65 52 65 63 6f | 72 64 2e 5c 6e 5c 30 30 |anceReco|rd.\n\00|
|00000c80| 37 22 29 3b 0d 09 7d 0d | 09 64 32 3d 44 65 73 63 |7");..}.|.d2=Desc|
|00000c90| 72 69 62 65 4c 75 6d 69 | 6e 61 6e 63 65 52 65 63 |ribeLumi|nanceRec|
|00000ca0| 6f 72 64 28 4c 50 32 29 | 3b 0d 09 69 66 28 64 32 |ord(LP2)|;..if(d2|
|00000cb0| 3d 3d 4e 55 4c 4c 29 7b | 0d 09 09 6e 3d 61 73 73 |==NULL){|...n=ass|
|00000cc0| 69 67 6e 4d 65 6d 6f 72 | 79 45 72 72 6f 72 3b 0d |ignMemor|yError;.|
|00000cd0| 09 09 69 66 28 66 6c 61 | 67 73 26 61 73 73 69 67 |..if(fla|gs&assig|
|00000ce0| 6e 4e 6f 50 72 69 6e 74 | 66 45 78 69 74 29 67 6f |nNoPrint|fExit)go|
|00000cf0| 74 6f 20 64 6f 6e 65 3b | 0d 09 09 65 6c 73 65 20 |to done;|...else |
|00000d00| 50 72 69 6e 74 66 45 78 | 69 74 28 22 5c 6e 57 72 |PrintfEx|it("\nWr|
|00000d10| 69 74 65 4c 75 6d 69 6e | 61 6e 63 65 52 65 63 6f |iteLumin|anceReco|
|00000d20| 72 64 3a 20 6e 6f 20 72 | 6f 6f 6d 20 66 6f 72 20 |rd: no r|oom for |
|00000d30| 56 61 72 69 61 62 6c 65 | 73 2e 5c 6e 5c 30 30 37 |Variable|s.\n\007|
|00000d40| 22 29 3b 0d 09 7d 0d 09 | 6d 3d 52 65 61 64 41 73 |");..}..|m=ReadAs|
|00000d50| 73 69 67 6e 6d 65 6e 74 | 46 69 6c 65 28 66 69 6c |signment|File(fil|
|00000d60| 65 6e 61 6d 65 2c 64 32 | 2c 66 6c 61 67 73 7c 61 |ename,d2|,flags|a|
|00000d70| 73 73 69 67 6e 52 65 70 | 6f 72 74 55 6e 6b 6e 6f |ssignRep|ortUnkno|
|00000d80| 77 6e 29 3b 0d 09 69 66 | 28 6d 3c 30 29 7b 0d 09 |wn);..if|(m<0){..|
|00000d90| 09 6e 3d 6d 3b 0d 09 09 | 67 6f 74 6f 20 64 6f 6e |.n=m;...|goto don|
|00000da0| 65 3b 0d 09 7d 0d 09 6d | 3d 55 6e 65 71 75 61 6c |e;..}..m|=Unequal|
|00000db0| 44 65 73 63 72 69 62 65 | 64 56 61 72 73 28 64 2c |Describe|dVars(d,|
|00000dc0| 64 32 2c 66 6c 61 67 73 | 29 3b 0d 09 69 66 28 6d |d2,flags|);..if(m|
|00000dd0| 3c 30 29 7b 0d 09 09 6e | 3d 6d 3b 0d 09 09 67 6f |<0){...n|=m;...go|
|00000de0| 74 6f 20 64 6f 6e 65 3b | 0d 09 7d 0d 64 6f 6e 65 |to done;|..}.done|
|00000df0| 3a 0d 09 69 66 28 64 32 | 21 3d 4e 55 4c 4c 29 66 |:..if(d2|!=NULL)f|
|00000e00| 72 65 65 28 64 32 29 3b | 0d 09 69 66 28 4c 50 32 |ree(d2);|..if(LP2|
|00000e10| 21 3d 4e 55 4c 4c 29 66 | 72 65 65 28 4c 50 32 29 |!=NULL)f|ree(LP2)|
|00000e20| 3b 0d 09 69 66 28 64 21 | 3d 4e 55 4c 4c 29 66 72 |;..if(d!|=NULL)fr|
|00000e30| 65 65 28 64 29 3b 0d 09 | 72 65 74 75 72 6e 20 6e |ee(d);..|return n|
|00000e40| 3b 0d 7d 0d 0d 44 65 73 | 63 72 69 70 74 69 6f 6e |;.}..Des|cription|
|00000e50| 20 2a 44 65 73 63 72 69 | 62 65 4c 75 6d 69 6e 61 | *Descri|beLumina|
|00000e60| 6e 63 65 52 65 63 6f 72 | 64 28 4c 75 6d 69 6e 61 |nceRecor|d(Lumina|
|00000e70| 6e 63 65 52 65 63 6f 72 | 64 20 2a 4c 50 29 0d 7b |nceRecor|d *LP).{|
|00000e80| 0d 09 44 65 73 63 72 69 | 70 74 69 6f 6e 20 2a 64 |..Descri|ption *d|
|00000e90| 3b 0d 09 69 6e 74 20 6a | 3b 0d 0d 09 64 3d 28 44 |;..int j|;...d=(D|
|00000ea0| 65 73 63 72 69 70 74 69 | 6f 6e 20 2a 29 6d 61 6c |escripti|on *)mal|
|00000eb0| 6c 6f 63 28 56 41 52 49 | 41 42 4c 45 53 2a 73 69 |loc(VARI|ABLES*si|
|00000ec0| 7a 65 6f 66 28 44 65 73 | 63 72 69 70 74 69 6f 6e |zeof(Des|cription|
|00000ed0| 29 29 3b 0d 09 69 66 28 | 64 3d 3d 4e 55 4c 4c 29 |));..if(|d==NULL)|
|00000ee0| 72 65 74 75 72 6e 20 4e | 55 4c 4c 3b 0d 09 6a 3d |return N|ULL;..j=|
|00000ef0| 30 3b 0d 09 64 5b 6a 2b | 2b 5d 3d 44 65 73 63 72 |0;..d[j+|+]=Descr|
|00000f00| 69 62 65 28 73 68 6f 72 | 74 54 79 70 65 2c 26 4c |ibe(shor|tType,&L|
|00000f10| 50 2d 3e 73 63 72 65 65 | 6e 2c 22 4c 52 2e 73 63 |P->scree|n,"LR.sc|
|00000f20| 72 65 65 6e 22 0d 09 09 | 2c 22 64 65 76 69 63 65 |reen"...|,"device|
|00000f30| 3d 47 65 74 53 63 72 65 | 65 6e 44 65 76 69 63 65 |=GetScre|enDevice|
|00000f40| 28 4c 52 2e 73 63 72 65 | 65 6e 29 3b 22 29 3b 0d |(LR.scre|en);");.|
|00000f50| 09 64 5b 6a 2b 2b 5d 3d | 44 65 73 63 72 69 62 65 |.d[j++]=|Describe|
|00000f60| 28 73 74 72 69 6e 67 54 | 79 70 65 2c 26 4c 50 2d |(stringT|ype,&LP-|
|00000f70| 3e 69 64 2c 22 4c 52 2e | 69 64 22 2c 4e 55 4c 4c |>id,"LR.|id",NULL|
|00000f80| 29 3b 0d 09 64 5b 6a 2b | 2b 5d 3d 44 65 73 63 72 |);..d[j+|+]=Descr|
|00000f90| 69 62 65 28 73 74 72 69 | 6e 67 54 79 70 65 2c 26 |ibe(stri|ngType,&|
|00000fa0| 4c 50 2d 3e 6e 61 6d 65 | 2c 22 4c 52 2e 6e 61 6d |LP->name|,"LR.nam|
|00000fb0| 65 22 2c 4e 55 4c 4c 29 | 3b 0d 09 64 5b 6a 2b 2b |e",NULL)|;..d[j++|
|00000fc0| 5d 3d 44 65 73 63 72 69 | 62 65 28 73 74 72 69 6e |]=Descri|be(strin|
|00000fd0| 67 54 79 70 65 2c 26 4c | 50 2d 3e 64 61 74 65 2c |gType,&L|P->date,|
|00000fe0| 22 4c 52 2e 64 61 74 65 | 22 2c 4e 55 4c 4c 29 3b |"LR.date|",NULL);|
|00000ff0| 0d 09 64 5b 6a 2b 2b 5d | 3d 44 65 73 63 72 69 62 |..d[j++]|=Describ|
|00001000| 65 28 73 74 72 69 6e 67 | 54 79 70 65 2c 26 4c 50 |e(string|Type,&LP|
|00001010| 2d 3e 6e 6f 74 65 73 2c | 22 4c 52 2e 6e 6f 74 65 |->notes,|"LR.note|
|00001020| 73 22 2c 4e 55 4c 4c 29 | 3b 0d 09 64 5b 6a 2b 2b |s",NULL)|;..d[j++|
|00001030| 5d 3d 44 65 73 63 72 69 | 62 65 28 73 68 6f 72 74 |]=Descri|be(short|
|00001040| 54 79 70 65 2c 26 4c 50 | 2d 3e 64 61 63 53 69 7a |Type,&LP|->dacSiz|
|00001050| 65 2c 22 4c 52 2e 64 61 | 63 53 69 7a 65 22 2c 4e |e,"LR.da|cSize",N|
|00001060| 55 4c 4c 29 3b 0d 09 64 | 5b 6a 2b 2b 5d 3d 44 65 |ULL);..d|[j++]=De|
|00001070| 73 63 72 69 62 65 28 64 | 6f 75 62 6c 65 54 79 70 |scribe(d|oubleTyp|
|00001080| 65 2c 26 4c 50 2d 3e 4c | 4d 69 6e 2c 22 4c 52 2e |e,&LP->L|Min,"LR.|
|00001090| 4c 4d 69 6e 22 2c 22 6c | 75 6d 69 6e 61 6e 63 65 |LMin","l|uminance|
|000010a0| 20 61 74 20 56 4d 69 6e | 22 29 3b 0d 09 64 5b 6a | at VMin|");..d[j|
|000010b0| 2b 2b 5d 3d 44 65 73 63 | 72 69 62 65 28 64 6f 75 |++]=Desc|ribe(dou|
|000010c0| 62 6c 65 54 79 70 65 2c | 26 4c 50 2d 3e 4c 4d 61 |bleType,|&LP->LMa|
|000010d0| 78 2c 22 4c 52 2e 4c 4d | 61 78 22 0d 09 09 2c 22 |x,"LR.LM|ax"...,"|
|000010e0| 6c 75 6d 69 6e 61 6e 63 | 65 20 61 74 20 56 4d 61 |luminanc|e at VMa|
|000010f0| 78 22 29 3b 0d 09 64 5b | 6a 2b 2b 5d 3d 44 65 73 |x");..d[|j++]=Des|
|00001100| 63 72 69 62 65 28 64 6f | 75 62 6c 65 54 79 70 65 |cribe(do|ubleType|
|00001110| 2c 26 4c 50 2d 3e 4c 42 | 61 63 6b 67 72 6f 75 6e |,&LP->LB|ackgroun|
|00001120| 64 2c 22 4c 52 2e 4c 42 | 61 63 6b 67 72 6f 75 6e |d,"LR.LB|ackgroun|
|00001130| 64 22 0d 09 09 2c 22 62 | 61 63 6b 67 72 6f 75 6e |d"...,"b|ackgroun|
|00001140| 64 20 6c 75 6d 69 6e 61 | 6e 63 65 20 64 75 72 69 |d lumina|nce duri|
|00001150| 6e 67 20 63 61 6c 69 62 | 72 61 74 69 6f 6e 22 29 |ng calib|ration")|
|00001160| 3b 0d 09 64 5b 6a 2b 2b | 5d 3d 44 65 73 63 72 69 |;..d[j++|]=Descri|
|00001170| 62 65 28 73 68 6f 72 74 | 54 79 70 65 2c 26 4c 50 |be(short|Type,&LP|
|00001180| 2d 3e 56 42 61 63 6b 67 | 72 6f 75 6e 64 2c 22 4c |->VBackg|round,"L|
|00001190| 52 2e 56 42 61 63 6b 67 | 72 6f 75 6e 64 22 0d 09 |R.VBackg|round"..|
|000011a0| 09 2c 22 62 61 63 6b 67 | 72 6f 75 6e 64 20 6e 75 |.,"backg|round nu|
|000011b0| 6d 62 65 72 20 75 73 65 | 64 20 64 75 72 69 6e 67 |mber use|d during|
|000011c0| 20 63 61 6c 69 62 72 61 | 74 69 6f 6e 22 29 3b 0d | calibra|tion");.|
|000011d0| 09 64 5b 6a 2b 2b 5d 3d | 44 65 73 63 72 69 62 65 |.d[j++]=|Describe|
|000011e0| 28 64 6f 75 62 6c 65 54 | 79 70 65 2c 26 4c 50 2d |(doubleT|ype,&LP-|
|000011f0| 3e 64 70 69 2c 22 4c 52 | 2e 64 70 69 22 2c 22 70 |>dpi,"LR|.dpi","p|
|00001200| 69 78 65 6c 73 2f 69 6e | 63 68 22 29 3b 0d 09 64 |ixels/in|ch");..d|
|00001210| 5b 6a 2b 2b 5d 3d 44 65 | 73 63 72 69 62 65 28 64 |[j++]=De|scribe(d|
|00001220| 6f 75 62 6c 65 54 79 70 | 65 2c 26 4c 50 2d 3e 48 |oubleTyp|e,&LP->H|
|00001230| 7a 2c 22 4c 52 2e 48 7a | 22 2c 22 66 72 61 6d 65 |z,"LR.Hz|","frame|
|00001240| 73 2f 73 65 63 6f 6e 64 | 22 29 3b 0d 09 64 5b 6a |s/second|");..d[j|
|00001250| 2b 2b 5d 3d 44 65 73 63 | 72 69 62 65 28 73 74 72 |++]=Desc|ribe(str|
|00001260| 69 6e 67 54 79 70 65 2c | 26 4c 50 2d 3e 75 6e 69 |ingType,|&LP->uni|
|00001270| 74 73 2c 22 4c 52 2e 75 | 6e 69 74 73 22 2c 4e 55 |ts,"LR.u|nits",NU|
|00001280| 4c 4c 29 3b 0d 09 64 5b | 6a 2b 2b 5d 3d 44 65 73 |LL);..d[|j++]=Des|
|00001290| 63 72 69 62 65 28 6c 6f | 6e 67 54 79 70 65 2c 26 |cribe(lo|ngType,&|
|000012a0| 4c 50 2d 3e 63 6f 65 66 | 66 69 63 69 65 6e 74 73 |LP->coef|ficients|
|000012b0| 2c 22 4c 52 2e 63 6f 65 | 66 66 69 63 69 65 6e 74 |,"LR.coe|fficient|
|000012c0| 73 22 0d 09 09 2c 22 23 | 20 6f 66 20 63 6f 65 66 |s"...,"#| of coef|
|000012d0| 66 69 63 69 65 6e 74 73 | 20 69 6e 20 70 6f 6c 79 |ficients| in poly|
|000012e0| 6e 6f 6d 69 61 6c 20 66 | 69 74 22 29 3b 0d 09 64 |nomial f|it");..d|
|000012f0| 5b 6a 2b 2b 5d 3d 44 65 | 73 63 72 69 62 65 41 72 |[j++]=De|scribeAr|
|00001300| 72 61 79 28 64 6f 75 62 | 6c 65 54 79 70 65 2c 26 |ray(doub|leType,&|
|00001310| 4c 50 2d 3e 70 2c 22 4c | 52 2e 70 22 0d 09 09 2c |LP->p,"L|R.p"...,|
|00001320| 22 4c 28 56 29 3d 70 5b | 30 5d 2b 70 5b 31 5d 2a |"L(V)=p[|0]+p[1]*|
|00001330| 56 2b 70 5b 32 5d 2a 56 | 2a 56 2b 20 2e 20 2e 20 |V+p[2]*V|*V+ . . |
|00001340| 2e 20 b1 70 6f 6c 79 6e | 6f 6d 69 61 6c 45 72 72 |. .polyn|omialErr|
|00001350| 6f 72 22 0d 09 09 2c 73 | 69 7a 65 6f 66 28 4c 50 |or"...,s|izeof(LP|
|00001360| 2d 3e 70 29 2f 73 69 7a | 65 6f 66 28 4c 50 2d 3e |->p)/siz|eof(LP->|
|00001370| 70 5b 30 5d 29 2c 30 4c | 29 3b 0d 09 64 5b 6a 2b |p[0]),0L|);..d[j+|
|00001380| 2b 5d 3d 44 65 73 63 72 | 69 62 65 28 64 6f 75 62 |+]=Descr|ibe(doub|
|00001390| 6c 65 54 79 70 65 2c 26 | 4c 50 2d 3e 70 6f 6c 79 |leType,&|LP->poly|
|000013a0| 6e 6f 6d 69 61 6c 45 72 | 72 6f 72 2c 22 4c 52 2e |nomialEr|ror,"LR.|
|000013b0| 70 6f 6c 79 6e 6f 6d 69 | 61 6c 45 72 72 6f 72 22 |polynomi|alError"|
|000013c0| 0d 09 09 2c 22 52 4d 53 | 20 65 72 72 6f 72 20 6f |...,"RMS| error o|
|000013d0| 66 20 66 69 74 22 29 3b | 0d 09 64 5b 6a 2b 2b 5d |f fit");|..d[j++]|
|000013e0| 3d 44 65 73 63 72 69 62 | 65 41 72 72 61 79 28 64 |=Describ|eArray(d|
|000013f0| 6f 75 62 6c 65 54 79 70 | 65 2c 26 4c 50 2d 3e 71 |oubleTyp|e,&LP->q|
|00001400| 2c 22 4c 52 2e 71 22 0d | 09 09 2c 22 4c 28 56 29 |,"LR.q".|..,"L(V)|
|00001410| 3d 71 5b 30 5d 2b 71 5b | 31 5d 2a 56 2b 71 5b 32 |=q[0]+q[|1]*V+q[2|
|00001420| 5d 2a 56 2a 56 b1 71 75 | 61 64 72 61 74 69 63 45 |]*V*V.qu|adraticE|
|00001430| 72 72 6f 72 22 2c 73 69 | 7a 65 6f 66 28 4c 50 2d |rror",si|zeof(LP-|
|00001440| 3e 71 29 2f 73 69 7a 65 | 6f 66 28 4c 50 2d 3e 71 |>q)/size|of(LP->q|
|00001450| 5b 30 5d 29 2c 30 4c 29 | 3b 0d 09 64 5b 6a 2b 2b |[0]),0L)|;..d[j++|
|00001460| 5d 3d 44 65 73 63 72 69 | 62 65 28 64 6f 75 62 6c |]=Descri|be(doubl|
|00001470| 65 54 79 70 65 2c 26 4c | 50 2d 3e 71 75 61 64 72 |eType,&L|P->quadr|
|00001480| 61 74 69 63 45 72 72 6f | 72 2c 22 4c 52 2e 71 75 |aticErro|r,"LR.qu|
|00001490| 61 64 72 61 74 69 63 45 | 72 72 6f 72 22 0d 09 09 |adraticE|rror"...|
|000014a0| 2c 22 52 4d 53 20 65 72 | 72 6f 72 20 6f 66 20 66 |,"RMS er|ror of f|
|000014b0| 69 74 22 29 3b 0d 09 64 | 5b 6a 2b 2b 5d 3d 44 65 |it");..d|[j++]=De|
|000014c0| 73 63 72 69 62 65 41 72 | 72 61 79 28 64 6f 75 62 |scribeAr|ray(doub|
|000014d0| 6c 65 54 79 70 65 2c 26 | 4c 50 2d 3e 70 6f 77 65 |leType,&|LP->powe|
|000014e0| 72 2c 22 4c 52 2e 70 6f | 77 65 72 22 0d 09 09 2c |r,"LR.po|wer"...,|
|000014f0| 22 4c 28 56 29 3d 70 6f | 77 65 72 5b 30 5d 2b 52 |"L(V)=po|wer[0]+R|
|00001500| 65 63 74 69 66 79 28 70 | 6f 77 65 72 5b 31 5d 2b |ectify(p|ower[1]+|
|00001510| 70 6f 77 65 72 5b 32 5d | 2a 56 29 5e 70 6f 77 65 |power[2]|*V)^powe|
|00001520| 72 5b 33 5d b1 70 6f 77 | 65 72 45 72 72 6f 72 20 |r[3].pow|erError |
|00001530| 2a 2f 5c 5c 5c 6e 22 0d | 09 09 22 20 20 20 20 2f |*/\\\n".|.." /|
|00001540| 2a 20 77 68 65 72 65 20 | 52 65 63 74 69 66 79 28 |* where |Rectify(|
|00001550| 78 29 3d 78 20 69 66 20 | 78 b3 30 2c 20 61 6e 64 |x)=x if |x.0, and|
|00001560| 20 52 65 63 74 69 66 79 | 28 78 29 3d 30 20 6f 74 | Rectify|(x)=0 ot|
|00001570| 68 65 72 77 69 73 65 2e | 20 2a 2f 5c 5c 5c 6e 22 |herwise.| */\\\n"|
|00001580| 0d 09 09 22 20 20 20 20 | 2f 2a 20 50 65 6c 6c 69 |..." |/* Pelli|
|00001590| 20 26 20 5a 68 61 6e 67 | 20 28 31 39 39 31 29 20 | & Zhang| (1991) |
|000015a0| 45 71 73 2e 39 26 31 30 | 20 75 73 65 20 73 79 6d |Eqs.9&10| use sym|
|000015b0| 62 6f 6c 73 20 76 3d 56 | 2f 32 35 35 2c 20 2a 2f |bols v=V|/255, */|
|000015c0| 5c 5c 5c 6e 22 0d 09 09 | 22 20 20 20 20 2f 2a 20 |\\\n"...|" /* |
|000015d0| 61 6c 70 68 61 3d 70 6f | 77 65 72 5b 30 5d 2c 20 |alpha=po|wer[0], |
|000015e0| 62 65 74 61 3d 70 6f 77 | 65 72 5b 31 5d 2c 20 6b |beta=pow|er[1], k|
|000015f0| 61 70 70 61 3d 70 6f 77 | 65 72 5b 32 5d 2a 32 35 |appa=pow|er[2]*25|
|00001600| 35 2c 20 67 61 6d 6d 61 | 3d 70 6f 77 65 72 5b 33 |5, gamma|=power[3|
|00001610| 5d 22 0d 09 09 2c 73 69 | 7a 65 6f 66 28 4c 50 2d |]"...,si|zeof(LP-|
|00001620| 3e 70 6f 77 65 72 29 2f | 73 69 7a 65 6f 66 28 4c |>power)/|sizeof(L|
|00001630| 50 2d 3e 70 6f 77 65 72 | 5b 30 5d 29 2c 30 4c 29 |P->power|[0]),0L)|
|00001640| 3b 0d 09 64 5b 6a 2b 2b | 5d 3d 44 65 73 63 72 69 |;..d[j++|]=Descri|
|00001650| 62 65 28 64 6f 75 62 6c | 65 54 79 70 65 2c 26 4c |be(doubl|eType,&L|
|00001660| 50 2d 3e 70 6f 77 65 72 | 45 72 72 6f 72 2c 22 4c |P->power|Error,"L|
|00001670| 52 2e 70 6f 77 65 72 45 | 72 72 6f 72 22 0d 09 09 |R.powerE|rror"...|
|00001680| 2c 22 52 4d 53 20 65 72 | 72 6f 72 20 6f 66 20 66 |,"RMS er|ror of f|
|00001690| 69 74 22 29 3b 0d 09 64 | 5b 6a 2b 2b 5d 3d 44 65 |it");..d|[j++]=De|
|000016a0| 73 63 72 69 62 65 41 72 | 72 61 79 28 64 6f 75 62 |scribeAr|ray(doub|
|000016b0| 6c 65 54 79 70 65 2c 26 | 4c 50 2d 3e 66 69 78 65 |leType,&|LP->fixe|
|000016c0| 64 50 6f 77 65 72 2c 22 | 4c 52 2e 66 69 78 65 64 |dPower,"|LR.fixed|
|000016d0| 50 6f 77 65 72 22 0d 09 | 09 2c 22 4c 28 56 29 3d |Power"..|.,"L(V)=|
|000016e0| 66 69 78 65 64 50 6f 77 | 65 72 5b 30 5d 2b 52 65 |fixedPow|er[0]+Re|
|000016f0| 63 74 69 66 79 28 66 69 | 78 65 64 50 6f 77 65 72 |ctify(fi|xedPower|
|00001700| 5b 31 5d 2b 66 69 78 65 | 64 50 6f 77 65 72 5b 32 |[1]+fixe|dPower[2|
|00001710| 5d 2a 56 29 5e 66 69 78 | 65 64 50 6f 77 65 72 5b |]*V)^fix|edPower[|
|00001720| 33 5d b1 66 69 78 65 64 | 50 6f 77 65 72 45 72 72 |3].fixed|PowerErr|
|00001730| 6f 72 20 2a 2f 5c 5c 5c | 6e 22 0d 09 09 22 20 20 |or */\\\|n"..." |
|00001740| 20 20 2f 2a 20 54 68 65 | 20 65 78 70 6f 6e 65 6e | /* The| exponen|
|00001750| 74 20 66 69 78 65 64 50 | 6f 77 65 72 5b 33 5d 20 |t fixedP|ower[3] |
|00001760| 69 73 20 66 69 78 65 64 | 2e 22 0d 09 09 2c 73 69 |is fixed|."...,si|
|00001770| 7a 65 6f 66 28 4c 50 2d | 3e 66 69 78 65 64 50 6f |zeof(LP-|>fixedPo|
|00001780| 77 65 72 29 2f 73 69 7a | 65 6f 66 28 4c 50 2d 3e |wer)/siz|eof(LP->|
|00001790| 66 69 78 65 64 50 6f 77 | 65 72 5b 30 5d 29 2c 30 |fixedPow|er[0]),0|
|000017a0| 4c 29 3b 0d 09 64 5b 6a | 2b 2b 5d 3d 44 65 73 63 |L);..d[j|++]=Desc|
|000017b0| 72 69 62 65 28 64 6f 75 | 62 6c 65 54 79 70 65 2c |ribe(dou|bleType,|
|000017c0| 26 4c 50 2d 3e 66 69 78 | 65 64 50 6f 77 65 72 45 |&LP->fix|edPowerE|
|000017d0| 72 72 6f 72 2c 22 4c 52 | 2e 66 69 78 65 64 50 6f |rror,"LR|.fixedPo|
|000017e0| 77 65 72 45 72 72 6f 72 | 22 0d 09 09 2c 22 52 4d |werError|"...,"RM|
|000017f0| 53 20 65 72 72 6f 72 20 | 6f 66 20 66 69 74 22 29 |S error |of fit")|
|00001800| 3b 0d 09 64 5b 6a 2b 2b | 5d 3d 44 65 73 63 72 69 |;..d[j++|]=Descri|
|00001810| 62 65 28 64 6f 75 62 6c | 65 54 79 70 65 2c 26 4c |be(doubl|eType,&L|
|00001820| 50 2d 3e 72 2c 22 4c 52 | 2e 72 22 2c 4e 55 4c 4c |P->r,"LR|.r",NULL|
|00001830| 29 3b 0d 09 64 5b 6a 2b | 2b 5d 3d 44 65 73 63 72 |);..d[j+|+]=Descr|
|00001840| 69 62 65 28 64 6f 75 62 | 6c 65 54 79 70 65 2c 26 |ibe(doub|leType,&|
|00001850| 4c 50 2d 3e 67 2c 22 4c | 52 2e 67 22 2c 4e 55 4c |LP->g,"L|R.g",NUL|
|00001860| 4c 29 3b 0d 09 64 5b 6a | 2b 2b 5d 3d 44 65 73 63 |L);..d[j|++]=Desc|
|00001870| 72 69 62 65 28 64 6f 75 | 62 6c 65 54 79 70 65 2c |ribe(dou|bleType,|
|00001880| 26 4c 50 2d 3e 62 2c 22 | 4c 52 2e 62 22 2c 4e 55 |&LP->b,"|LR.b",NU|
|00001890| 4c 4c 29 3b 0d 09 64 5b | 6a 2b 2b 5d 3d 44 65 73 |LL);..d[|j++]=Des|
|000018a0| 63 72 69 62 65 28 64 6f | 75 62 6c 65 54 79 70 65 |cribe(do|ubleType|
|000018b0| 2c 26 4c 50 2d 3e 67 61 | 69 6e 41 63 63 75 72 61 |,&LP->ga|inAccura|
|000018c0| 63 79 2c 22 4c 52 2e 67 | 61 69 6e 41 63 63 75 72 |cy,"LR.g|ainAccur|
|000018d0| 61 63 79 22 2c 4e 55 4c | 4c 29 3b 0d 09 64 5b 6a |acy",NUL|L);..d[j|
|000018e0| 2b 2b 5d 3d 44 65 73 63 | 72 69 62 65 28 64 6f 75 |++]=Desc|ribe(dou|
|000018f0| 62 6c 65 54 79 70 65 2c | 26 4c 50 2d 3e 67 6d 2c |bleType,|&LP->gm,|
|00001900| 22 4c 52 2e 67 6d 22 0d | 09 09 2c 22 54 68 65 20 |"LR.gm".|..,"The |
|00001910| 6d 6f 6e 69 74 6f 72 27 | 73 20 63 6f 6e 74 72 61 |monitor'|s contra|
|00001920| 73 74 20 67 61 69 6e 2e | 22 29 3b 0d 09 64 5b 6a |st gain.|");..d[j|
|00001930| 2b 2b 5d 3d 44 65 73 63 | 72 69 62 65 28 73 68 6f |++]=Desc|ribe(sho|
|00001940| 72 74 54 79 70 65 2c 26 | 4c 50 2d 3e 72 61 6e 67 |rtType,&|LP->rang|
|00001950| 65 53 65 74 2c 22 4c 52 | 2e 72 61 6e 67 65 53 65 |eSet,"LR|.rangeSe|
|00001960| 74 22 0d 09 09 2c 22 7a | 65 72 6f 20 69 6e 64 69 |t"...,"z|ero indi|
|00001970| 63 61 74 65 73 20 74 68 | 61 74 20 72 61 6e 67 65 |cates th|at range|
|00001980| 20 70 61 72 61 6d 65 74 | 65 72 73 20 68 61 76 65 | paramet|ers have|
|00001990| 20 79 65 74 20 74 6f 20 | 62 65 20 73 65 74 22 29 | yet to |be set")|
|000019a0| 3b 0d 09 64 5b 6a 2b 2b | 5d 3d 44 65 73 63 72 69 |;..d[j++|]=Descri|
|000019b0| 62 65 28 73 68 6f 72 74 | 54 79 70 65 2c 26 4c 50 |be(short|Type,&LP|
|000019c0| 2d 3e 4c 2e 65 78 69 73 | 74 73 2c 22 4c 52 2e 4c |->L.exis|ts,"LR.L|
|000019d0| 2e 65 78 69 73 74 73 22 | 0d 09 09 2c 22 7a 65 72 |.exists"|...,"zer|
|000019e0| 6f 20 69 6e 64 69 63 61 | 74 65 73 20 74 68 61 74 |o indica|tes that|
|000019f0| 20 6c 75 6d 69 6e 61 6e | 63 65 20 74 61 62 6c 65 | luminan|ce table|
|00001a00| 20 68 61 73 20 79 65 74 | 20 74 6f 20 62 65 20 69 | has yet| to be i|
|00001a10| 6e 69 74 69 61 6c 69 7a | 65 64 22 29 3b 0d 09 64 |nitializ|ed");..d|
|00001a20| 5b 6a 2b 2b 5d 3d 44 65 | 73 63 72 69 62 65 28 73 |[j++]=De|scribe(s|
|00001a30| 68 6f 72 74 54 79 70 65 | 2c 26 4c 50 2d 3e 56 4d |hortType|,&LP->VM|
|00001a40| 69 6e 2c 22 4c 52 2e 56 | 4d 69 6e 22 0d 09 09 2c |in,"LR.V|Min"...,|
|00001a50| 22 6d 69 6e 69 6d 75 6d | 20 76 61 6c 75 65 20 74 |"minimum| value t|
|00001a60| 68 61 74 20 63 61 6e 20 | 62 65 20 6c 6f 61 64 65 |hat can |be loade|
|00001a70| 64 20 69 6e 74 6f 20 44 | 41 43 22 29 3b 0d 09 64 |d into D|AC");..d|
|00001a80| 5b 6a 2b 2b 5d 3d 44 65 | 73 63 72 69 62 65 28 73 |[j++]=De|scribe(s|
|00001a90| 68 6f 72 74 54 79 70 65 | 2c 26 4c 50 2d 3e 56 4d |hortType|,&LP->VM|
|00001aa0| 61 78 2c 22 4c 52 2e 56 | 4d 61 78 22 0d 09 09 2c |ax,"LR.V|Max"...,|
|00001ab0| 22 6d 61 78 69 6d 75 6d | 20 76 61 6c 75 65 20 74 |"maximum| value t|
|00001ac0| 68 61 74 20 63 61 6e 20 | 62 65 20 6c 6f 61 64 65 |hat can |be loade|
|00001ad0| 64 20 69 6e 74 6f 20 44 | 41 43 22 29 3b 0d 09 64 |d into D|AC");..d|
|00001ae0| 5b 6a 2b 2b 5d 3d 44 65 | 73 63 72 69 62 65 28 30 |[j++]=De|scribe(0|
|00001af0| 2c 4e 55 4c 4c 2c 4e 55 | 4c 4c 2c 4e 55 4c 4c 29 |,NULL,NU|LL,NULL)|
|00001b00| 3b 09 09 09 09 2f 2a 20 | 4d 61 72 6b 20 65 6e 64 |;..../* |Mark end|
|00001b10| 20 6f 66 20 6c 69 73 74 | 20 2a 2f 0d 09 61 73 73 | of list| */..ass|
|00001b20| 65 72 74 28 6a 3c 3d 56 | 41 52 49 41 42 4c 45 53 |ert(j<=V|ARIABLES|
|00001b30| 29 3b 0d 09 72 65 74 75 | 72 6e 20 64 3b 0d 7d 00 |);..retu|rn d;.}.|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 01 00 00 00 01 e4 | 00 00 00 e4 00 00 00 66 |........|.......f|
|00001b90| 00 00 0f 67 00 00 02 57 | 05 00 00 00 0f 70 00 00 |...g...W|.....p..|
|00001ba0| 01 82 05 00 00 00 0f 75 | 00 00 02 39 05 00 00 00 |.......u|...9....|
|00001bb0| 15 52 65 61 64 4c 75 6d | 69 6e 61 6e 63 65 52 65 |.ReadLum|inanceRe|
|00001bc0| 63 6f 72 64 2e 63 02 00 | 00 00 54 45 58 54 43 57 |cord.c..|..TEXTCW|
|00001bd0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 64 04 80 |..TEXTCW|IE...d..|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 a4 ba 7c 29 00 00 | 1a bf 00 00 02 4a 00 00 |....|)..|.....J..|
|00001c00| 0f c7 00 00 01 5d 05 00 | 00 00 0f d3 00 00 02 8e |.....]..|........|
|00001c10| 05 00 00 00 10 4c 00 00 | 02 55 05 00 00 00 11 0a |.....L..|.U......|
|00001c20| 00 00 02 41 05 00 00 00 | 11 70 00 00 01 a4 05 00 |...A....|.p......|
|00001c30| 00 00 12 be 00 00 02 b3 | 05 00 00 00 13 8f 00 00 |........|........|
|00001c40| 01 77 05 00 00 00 14 41 | 00 00 01 93 05 00 00 00 |.w.....A|........|
|00001c50| 14 42 00 00 01 94 05 00 | 00 00 14 46 00 00 01 96 |.B......|...F....|
|00001c60| 05 00 00 00 14 4a 00 00 | 01 89 05 00 00 00 14 4e |.....J..|.......N|
|00001c70| 00 00 01 97 05 00 00 00 | 14 52 00 00 01 99 05 00 |........|.R......|
|00001c80| 00 00 00 0a 00 00 0c b4 | 00 68 00 00 00 00 00 00 |........|.h......|
|00001c90| 00 7e 00 04 00 00 0d 60 | 00 00 0d 77 17 44 65 73 |.~.....`|...w.Des|
|00001ca0| 63 72 69 62 65 4c 75 6d | 69 6e 61 6e 63 65 52 65 |cribeLum|inanceRe|
|00001cb0| 63 6f 72 64 00 00 05 c4 | 00 00 05 dd 19 49 6e 69 |cord....|.....Ini|
|00001cc0| 74 69 61 6c 69 7a 65 4c | 75 6d 69 6e 61 6e 63 65 |tializeL|uminance|
|00001cd0| 52 65 63 6f 72 64 00 00 | 07 40 00 00 07 53 13 52 |Record..|.@...S.R|
|00001ce0| 65 61 64 4c 75 6d 69 6e | 61 6e 63 65 52 65 63 6f |eadLumin|anceReco|
|00001cf0| 72 64 00 00 08 ea 00 00 | 08 fe 15 57 72 69 74 65 |rd......|...Write|
|00001d00| 4c 75 6d 69 6e 61 6e 63 | 65 52 65 63 6f 72 64 00 |Luminanc|eRecord.|
|00001d10| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 03 | 00 04 00 57 00 03 02 0a |........|...W....|
|00001d40| 02 7d 00 57 00 03 02 0a | 02 7d ad 95 e6 04 00 00 |.}.W....|.}......|
|00001d50| 02 9a 00 00 02 9e 00 00 | 00 00 00 00 00 00 00 04 |........|........|
|00001d60| 00 01 00 01 00 00 01 00 | 00 00 01 e4 00 00 00 e4 |........|........|
|00001d70| 00 00 00 66 01 b3 9d e8 | 38 8e 00 00 00 1c 00 66 |...f....|8......f|
|00001d80| 00 02 42 4b 50 54 00 00 | 00 1a 4d 50 53 52 00 01 |..BKPT..|..MPSR..|
|00001d90| 00 26 4d 57 42 42 00 00 | 00 3e 66 60 ff ff 00 00 |.&MWBB..|.>f`....|
|00001da0| 00 00 00 00 00 00 03 ef | ff ff 00 00 00 0e 00 00 |........|........|
|00001db0| 00 00 03 ed ff ff 00 00 | 00 90 00 00 00 00 03 f0 |........|........|
|00001dc0| ff ff 00 00 00 dc 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+